﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls.UI;

namespace EClinic
{
    public partial class MainView : Telerik.WinControls.UI.RadRibbonForm
    {
        public MainView()
        {
            InitializeComponent();
            SearchTextBox1.BringToFront();
        }

        private void radPanelBarGroupElement4_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// adding new patient button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void NewPatientButton_Click(object sender, EventArgs e)
        {
            Telerik.WinControls.UI.RadPageViewPage x = new RadPageViewPage();
            x.CreateControl();
            x.Text = "New Patient";
           PatientEditor c = new PatientEditor();
           c.CreateControl();
            c.Dock = DockStyle.Fill;
           x.Controls.Add(c);
            
          PatientsEditorWindow.Pages.Add(x);
            PatientsEditorWindow.SelectedPage = x;
           
        }

        private void DeletePatientButton_Click(object sender, EventArgs e)
        {
            
        }

        private void radButtonElement1_Click(object sender, EventArgs e)
        {
            Telerik.WinControls.UI.RadPageViewPage x = new RadPageViewPage();
            x.CreateControl();
            x.Text = "New Path Way";
            pathwaysView.PathWayDrawing c = new pathwaysView.PathWayDrawing();
            c.CreateControl();
            c.Dock = DockStyle.Fill;
            x.Controls.Add(c);

            PatientsEditorWindow.Pages.Add(x);
            PatientsEditorWindow.SelectedPage = x;
        }


        private void radButtonElement2_MouseDown(object sender, MouseEventArgs e)
        {
            DoDragDrop("YsNoNode", DragDropEffects.Copy);
            radButtonElement2.Enabled = false;
            radButtonElement2.Enabled = true;
        }

       

        private void radButtonElement3_MouseDown(object sender, MouseEventArgs e)
        {
            DoDragDrop("Activtynode", DragDropEffects.Copy);
            radButtonElement3.Enabled = false;
            radButtonElement3.Enabled = true;
        }

        private void radButtonElement4_MouseDown(object sender, MouseEventArgs e)
        {
            DoDragDrop("MQN", DragDropEffects.Copy);
            radButtonElement4.Enabled = false;
            radButtonElement4.Enabled = true;
        }

        private void radButtonElement3_Click(object sender, EventArgs e)
        {

        }



       








    }
}